package com.tlgen.orm.test;

import com.tlgen.orm.annotation.Collection;
import com.tlgen.orm.model.BaseEntity;
import lombok.Data;

import java.util.List;

@Data
public class Library extends BaseEntity<Long> {

    private String name;

    // 一对多关联（无中间表）
    @Collection(relate = "libraryId")
    private List<Book> books;

}
